package com.ctshk.rpc.order.train.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @CreateTime: 2021-05-12 17:42
 * @Description: 确认成功订单通知旅客
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "SendMessageToTourist对象",description = "确认成功订单通知旅客")
public class TrainOrderSendMessageToTouristReq implements Serializable {
    /**
     * 通知方式
     * 对应InformPassengersWay枚举
     */
    @NotNull(message = "通知方式不能为空")
    @ApiModelProperty(value = "通知方式,1=电子邮件,2=手机短信",required = true)
    private Integer informPassengersWay;

    /**
     * 手机号/电子邮件
     */
    @NotBlank(message = ("手机号/邮件号码不能为空"))
    @ApiModelProperty(value = "手机号/邮件号码",required = true)
    private String number;

    /**
     * 手机区域号码
     * 中国+86
     * 香港+852
     */
    @ApiModelProperty(value = "手机区域号码")
    private String areaCode;

    /**
     * 通知内容
     */
    @NotBlank(message = "通知内容不能为空")
    @ApiModelProperty(value = "通知内容",required = true)
    private String message;

}
